package com.workcell.workdata.xthings.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.workcell.workdata.xthings.constant.ExtOutputAttributes;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 皮带秤快照
 */
@Data
@TableName("t_code_belt_scales")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "皮带秤二维码")
public class CodeBeltScales extends Model<CodeCamera> {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("二维码信息ID")
    @TableId("code_id")
    private String codeId;

    @ApiModelProperty("皮带秤ID")
    private String bsId;

    @ApiModelProperty("厂家设备编号")
    @ExtOutputAttributes(key = "厂家设备编号")
    private String deviceNo;

    @ApiModelProperty("短链码")
    private String chainNum;

    @ApiModelProperty("设备名称")
    @ExtOutputAttributes(key = "设备名称")
    private String bsName;

    @ApiModelProperty("厂商名称")
    @ExtOutputAttributes(key = "厂商名称")
    private String manufacturer;

    @ApiModelProperty("产品类型")
    private String dcProductType;

    @ApiModelProperty("型号")
    @ExtOutputAttributes(key = "型号")
    private String dcModel;

    @ApiModelProperty("状态")
    private String state;

    @ApiModelProperty("创建人")
	@TableField(fill = FieldFill.INSERT)
    private String createBy;

    @ApiModelProperty("创建时间")
	@TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("更新人")
	@TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;

    @ApiModelProperty("更新时间")
	@TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
